<?php
for($i=1;$i<=9;$i++){
    echo "<table>";
    echo "<tr>";
    for($j=1;$j<=$i;$j++){
        echo "<td>";
        echo $i*$j;
        echo "<td>";
    }
    echo "<td>";
    echo "</table>";
}
?>